<template>
  <div class="my_infor">
    <van-sticky>
      <van-nav-bar title="个人信息" left-arrow @click-left="back" />
    </van-sticky>
    <div class="mb_18">
      <van-cell>
        <template #title>
          <span class="name">头像</span>
        </template>
        <template #default>
          <div class="pic"></div>
        </template>
      </van-cell>
      <van-cell title="昵称" value="向晚" is-link></van-cell>
    </div>
    <div>
      <van-cell title="手机号" value="13011830221"> </van-cell>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      chosenAddressId: '1',
    }
  },
  methods: {
    back () {
      window.history.go(-1)
    }
  }
}
</script>

<style lang="scss">
.my_infor {
  background-color: #f5f5f5;
  min-height: 100vh;
  text-align: left;
  .mb_18 {
    margin-bottom: 0.18rem;
  }
  .name {
    line-height: 0.97rem;
  }
  .pic {
    width: 0.97rem;
    height: 0.97rem;
    border-radius: 50%;
    background-color: #f5f5f5;
    float: right;
  }
}
</style>